package com.ruoyi.basebill.DTO;

import javax.validation.Valid;
import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.Size;
import java.util.List;

public class XczbsbInfo {

    /** 单据编号 */
    @NotBlank(message = "单据编号不能为空")
    private String fnumber;

    /** 薪酬期间*/
    @NotBlank(message = "薪酬期间不能为空")
    private String fperiod;

    /** 来源单ID */
    @NotBlank(message = "来源单ID不能为空")
    private String fsourcebillid;

//    /** 薪资类型 */
//    @NotBlank(message = "薪资类型不能为空")
//    private String fxzlx;

    @Valid // 嵌套验证必须用@Valid
    @NotEmpty(message = "明细集合不能为空")
    @Size(min = 1, message = "明细集合至少要有一个自定义属性")
    private List<XczbsbEntryInfo> entry;


    public String getFnumber() {
        return fnumber;
    }

    public void setFnumber(String fnumber) {
        this.fnumber = fnumber;
    }

    public String getFperiod() {
        return fperiod;
    }

    public void setFperiod(String fperiod) {
        this.fperiod = fperiod;
    }

    public String getFsourcebillid() {
        return fsourcebillid;
    }

    public void setFsourcebillid(String fsourcebillid) {
        this.fsourcebillid = fsourcebillid;
    }

//    public String getFxzlx() {
//        return fxzlx;
//    }
//
//    public void setFxzlx(String fxzlx) {
//        this.fxzlx = fxzlx;
//    }

    public List<XczbsbEntryInfo> getEntry() {
        return entry;
    }

    public void setEntry(List<XczbsbEntryInfo> entry) {
        this.entry = entry;
    }
}
